package lianxi.test01;

public class Manager extends Employee{
    private Clerk clerk;

    public Manager(Clerk clerk) {
        this.clerk = clerk;
    }

    public Manager(String name, String workId, String dept, Clerk clerk) {
        super(name, workId, dept);
        this.clerk = clerk;
    }

    public Manager() {
    }

    public Manager(String name, String workId, String dept) {
        super(name, workId, dept);
    }

    public Clerk getClerk() {
        return clerk;
    }

    public void setClerk(Clerk clerk) {
        this.clerk = clerk;
    }

    @Override
    public void showMsg(){
        System.out.println("经理：工号为 "+getWorkId()+",名字为 "+getName()+"，部门为 "+getDept()+" ,他的职员名字是 " +getClerk().getName());
    }
}
